package com.whut.entryservice.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.whut.entryservice.domain.po.EntrySecKill;
import com.whut.entryservice.mapper.EntrySecKillMapper;
import com.whut.entryservice.service.IEntrySecKillService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @Description: 报名秒杀Service实现类
 * @Author: Zonghe Wang
 * @Date: 2025/5/5 10:32
 */
@Service
@RequiredArgsConstructor
public class EntrySecKillServiceImpl extends ServiceImpl<EntrySecKillMapper, EntrySecKill> implements IEntrySecKillService {

    private final EntrySecKillMapper entrySecKillMapper;

    @Override
    public boolean reduceQuota(String cid) {
        return entrySecKillMapper.reduceQuota(cid);
    }
}
